package com.longxi.tianjintianbao.ui.activity.goodstraffic;

import android.content.Intent;
import android.widget.Button;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.goodstraffic.SignGoodsTrafficAtPresenter;
import com.longxi.tianjintianbao.ui.view.goodstraffic.ISignGoodsTrafficAtView;
import com.longxi.tianjintianbao.widget.InputSelectBoxView;

import butterknife.BindView;

public class SignGoodsReleaseActivity extends BaseActivity<ISignGoodsTrafficAtView, SignGoodsTrafficAtPresenter> implements ISignGoodsTrafficAtView {

    @BindView(R.id.btnLogin)
    Button mBtnLogin;
    @BindView(R.id.isbReleaseRealname)
    InputSelectBoxView mRealname;
    @BindView(R.id.isbReleasePhone)
    InputSelectBoxView mPhone;
    @BindView(R.id.isbReleaseHouse)
    InputSelectBoxView mHouse;
    @BindView(R.id.isbReleaseGoods)
    InputSelectBoxView mGoods;
    @BindView(R.id.isbReleaseTime)
    InputSelectBoxView mTime;
    @BindView(R.id.isbReleaseRemark)
    InputSelectBoxView mRemark;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_sign_goods_release;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
    }

    @Override
    public void initListener() {
        super.initListener();
        mBtnLogin.setOnClickListener(v -> mPresenter.btnLogin());
    }

    @Override
    protected SignGoodsTrafficAtPresenter createPresenter() {
        return new SignGoodsTrafficAtPresenter(this);
    }

    @Override
    public InputSelectBoxView getRealname() {
        return mRealname;
    }

    @Override
    public InputSelectBoxView getPhone() {
        return mPhone;
    }

    @Override
    public InputSelectBoxView getHouse() {
        return mHouse;
    }

    @Override
    public InputSelectBoxView getGoods() {
        return mGoods;
    }

    @Override
    public InputSelectBoxView getTime() {
        return mTime;
    }

    @Override
    public InputSelectBoxView getRemark() {
        return mRemark;
    }

    @Override
    public Button getBtnLogin() {
        return mBtnLogin;
    }


    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        mPresenter.onActivityResult(requestCode, resultCode, data);
    }

}


